package conson.tech.manage.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.manage.app.entity.pojo.AppGroupConfig;
import conson.tech.manage.app.entity.vo.AppSpecialVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * InterfaceName: AppConfigMapper
 * Description:
 * Author: HXL
 * Date: 2020/4/23 3:44 下午
 * Version: 1.0
 */
public interface AppGroupConfigMapper extends BaseMapper<AppGroupConfig> {
    Page<AppGroupConfig> queryGroupPage(Page<AppGroupConfig> page);

    int deleteAppGroupConfigById(@Param("id") Long id);

    List<AppGroupConfig> queryGroupList(@Param("requestPageType")Integer requestPageType);

    Page<AppSpecialVo> querySpecial(Page<AppSpecialVo> page);

    int insertByAppGroup(AppGroupConfig appGroupConfig);

    List<AppGroupConfig> queryAppGroupByType(@Param("type") Integer type,@Param("versionValue")Integer versionValue);

    AppGroupConfig queryGroupByGroupId(@Param("groupId") Long groupId,@Param("versionValue") Integer versionValue);
}
